import { Card } from 'antd';
import React, { Component } from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { connect } from 'dva';
import router from 'umi/router';
import Request from 'umi-request';
// import styles from './style.less';



// connect(({ formAndstepForm }) => ({
//   current: formAndstepForm.current,
// }))(StepForm);

export default class Admin extends Component {
  constructor(props) {
    super(props);
    this.state = {

    };
  }

  componentDidMount() {

  }

  handleClickBtn = () => {
    const CancelToken = Request.CancelToken;
    let cancel;

    Request.get('http://admin.test.jingyunhrs.com/zb-common/get-industry-list', {
      cancelToken: new CancelToken(function executor(c) {
        cancel = c;
      })
    });
    // 取消请求
    cancel();
  }

  render() {

    return (
      <PageHeaderWrapper>
        <Card bordered={false}>
          Welcome to 91linggong work bench
          {/* <button onClick={this.handleClickBtn}>按钮</button> */}
        </Card>
      </PageHeaderWrapper>
    );
  }
}